package com.miyu.system.pojo.system;

import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
/**
 * 用户角色配置表（中间表);
 * @author : miyu
 * @date : 2023-7-23
 */
@ApiModel(value = "用户角色配置表（中间表)",description = "")
@Data
@Entity
@Table(name="sys_user_role")
@TableComment("用户角色配置表")
public class SysUserRole implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @GeneratedValue(generator = "jpa-uuid")

    @ApiModelProperty(value="主键",notes = "")
    @ColumnComment("主键")
    @Column(name = "sur_id", nullable = false,length=32 )
    private String surId ;
    /** 用户 */
    @ApiModelProperty(value="用户",notes = "")
    @ColumnComment("用户")
    @Column(name = "user_id", nullable = true,length=32 )
    private String userId ;
    /** 角色 */
    @ApiModelProperty(value="角色",notes = "")
    @ColumnComment("角色")
    @Column(name = "role_id", nullable = true,length=32 )
    private String roleId ;
}